﻿using System.ComponentModel;

namespace NTTDATA.BEENChina.ResultCertification.PropertyGridUtil.CustomObject
{
    [TypeConverter(typeof(CustomConverter))]
    public class DataRange : PropertyData
    {
        private int _row = -1;
        private int col = -1;
        [Category("range")]
        public int Row { get {return _row ;} set{_row=value;} }
        [Category("range")]
        public int Col { get {return col;} set{col=value ;} }
        public string Description { get; set; }
        [Category("value")]
        public double maxValue { get; set; }
        [Category("value")]
        public double minValue { get; set; }

        #region PropertyData impl
        public string GetDisplayName()
        {
            return Description;
        }
        public string GetDescription()
        {
            return string.Empty;
        }

        public string GetValue()
        {
            return  Row.ToString() + "," + Col.ToString() + ":" + minValue.ToString() + "-->" + maxValue.ToString();
        }
        #endregion
    }
}
